<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>俄罗斯方块</title><script defer="defer" src="script/bundle.js"></script></head><style>#root {
        display: flex;
        justify-content: center;
        margin: 0 auto;

    }

    #main {
        background: #000;
        position: relative;
        border: 1em solid gray;
    }

    #tip {
        padding: 20px;
        display: flex;
        flex-direction: column;
    }

    #next {
        position: relative;
    }

    #score_container {
        width: 100%;
        display: flex;
        flex-direction: row;
    }

    .title {
        font-size: 25px;
        font-weight: bolder;
    }

    #score {
        margin-left: 20px;
        color: red;
        font-size: 50px;
        text-align: center;

    }

    /* 蒙层处理 */
    #msg {
        position: absolute;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, .3);
        z-index: 999;
        display: flex;
        justify-content: center;
        align-items: center;
        display: none;
    }

    #msg p {
        border: 2px solid #fff;
        padding: 1em;
        background: #f20;
        color: #fff;
    }</style><body><div id="root"><div id="main"><div id="msg"><p>游戏暂停</p></div></div><div id="tip"><label class="title">next:</label><div id="next"></div><div id="score_constainer"><label class="title">score:</label> <strong id="score">0</strong></div><div class="margin-top:10px"><p>使用键盘进行游戏：</p><p>↑：旋转</p><p>↓：向下</p><p>←：左</p><p>→：右</p><p>空格：暂停/恢复/开始</p></div></div></div></body></html>